<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>共享文件-用户验证</title>
    <style>
        body{
            background-color: gray;
        }
        .b{
            text-align: center;
        }
        .bb{
            text-align: center;
		    padding:8px;border:1px solid #96c2f1;background:#eff7ff;
            width: 800px;
        }
        .h{
            height: 50px;
        }
    </style>
</head>
<body>
    <script>
        function dn(){
            var ok=1
            var passwed=document.getElementById("passwed").value
            var user = document.getElementById("user").value
            if(user==="150")
            {
                if(passwed=="12345")
                {
                   alert("passwed ok")
                   location.href="./file"
                   localStorage.setItem('ok',ok)
                }
                else
                {
                    alert("passwed no")
                }
            }
            else
            {
                alert("user no")
            }
        }
        function tozuce(){
            location.href="../user/zuce.html"
        }
        function esc(){
           history.go(-1)
        }
        function help(){
            alert("150;12345")
        }
    </script>
    <div class="h"></div>
    <div class="b" style="text-align: center;">
        <div class="bb">
            <div>
                <h2>登陆</h2>
            </div>
            <div>
                <a>用户</a>
                <input id="user" value="150"></input>
            </div>
            <div>
                <a>密码</a>
                <input id="passwed" type="password"></input>
            </div>
            <button onclick="dn()">登陆</button>
            <hr>
            <div>
                <button onclick="tozuce()">去注册</button>
            </div>
            <button onclick="esc()">退出</button>
            <button onclick="help()">帮助</button>
            <div>
                
            </div>
        </div>
    </div>
    
    <hr>
    <div style="text-align: center;">
        <div>17634568997</div>
        <div>haha</div>
    </div>
</body>
</html>